package com.zhuobowen.warehouse.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration(proxyBeanMethods = false)
@ConfigurationProperties(prefix = "wms")
public class WmsProperties {

    private String restUrl;

    private String authKey;

    private String clientId;

    private String pageNumKey;

    private String pageSizeKey;

    private InventoryResource inventory;

    private CustomerResource customer;

    private ImportOrderResource importOrder;

    private ExportOrderResource exportOrder;

    private GoodsResource goods;

    @Data
    public static class GoodsResource {

        private String getSelectItems;

    }

    @Data
    public static class CustomerResource {

        private String getSelectItems;

    }

    @Data
    public static class ImportOrderResource {

        private String queryPath;

    }

    @Data
    public static class ExportOrderResource {

        private String queryPath;

    }

    @Data
    public static class InventoryResource {

        private String summaryPath;

        private String queryPath;

        private String exportImport;

    }

}
